Class symantec.itools.awt.multiList.TextAndImageCell
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.awt.multiList.TextAndImageCell
Object
|
+----Cell
|
+----symantec.itools.awt.multiList.TextAndImageCell
- public class TextAndImageCell
- extends Cell
- implements ImageObserver, Serializable
This is a helper class to the MultiList class.
It contains and draws the image and text of a cell.
- Version:
- 1.1, July 14, 1997
- Author:
- Symantec
-
im
- This cell's image value.
-
list
- The MultiList this cell belongs to.
-
text
- This cell's text value.
-
symantec.itools.awt.multiList.TextAndImageCell(MultiList)
- Constructs a default TextAndImageCell.
-
symantec.itools.awt.multiList.TextAndImageCell(MultiList, String)
- Constructs a TextAndImageCell with the given text value.
-
symantec.itools.awt.multiList.TextAndImageCell(MultiList, Image)
- Constructs a TextAndImageCell with the given image value.
-
symantec.itools.awt.multiList.TextAndImageCell(MultiList, String, Image)
- Constructs a TextAndImageCell with the given text and image values.
-
drawCell(Graphics, int, int, int, int, int, int)
- Draws the cell using the given graphics context.
-
getImage()
- Returns this cell's image.
-
getText()
- Returns this cell's text.
-
imageUpdate(Image, int, int, int, int, int)
- Incrementally updates an image as image data becomes available.
-
toString()
- Returns a string representation of this component.
im
protected transient java.awt.Image im
- This cell's image value.
list
protected symantec.itools.awt.MultiList list
- The MultiList this cell belongs to.
text
protected java.lang.String text
- This cell's text value.
TextAndImageCell
public TextAndImageCell(MultiList l)
- Constructs a default TextAndImageCell.
- Parameters:
- l - the MultiList this cell is in
TextAndImageCell
public TextAndImageCell(MultiList l,
String s)
- Constructs a TextAndImageCell with the given text value.
- Parameters:
- l - the MultiList this cell is in
- s - the cell's text value
TextAndImageCell
public TextAndImageCell(MultiList l,
Image i)
- Constructs a TextAndImageCell with the given image value.
- Parameters:
- l - the MultiList this cell is in
- i - the cell's image value
TextAndImageCell
public TextAndImageCell(MultiList l,
String s,
Image i)
- Constructs a TextAndImageCell with the given text and image values.
- Parameters:
- l - the MultiList this cell is in
- s - the cell's text value
- i - the cell's image value
drawCell
public void drawCell(Graphics g,
int align,
int x,
int y,
int w,
int h,
int asc)
- Draws the cell using the given graphics context.
- Parameters:
- g - the graphics context used for drawing
- align - the column alignment, one of LEFT, CENTER, or RIGHT
- x - the horizontal cell position, in pixels
- y - the vertical cell position, in pixels
- w - the width of the cell, in pixels
- h - the height of the cell, in pixels
- asc - the ascent metric of the cell's font
- Overrides:
- drawCell in class Cell
- See Also:
- LEFT, CENTER, RIGHT
getImage
public java.awt.Image getImage()
- Returns this cell's image.
getText
public java.lang.String getText()
- Returns this cell's text.
imageUpdate
public boolean imageUpdate(Image img,
int flags,
int x,
int y,
int w,
int h)
- Incrementally updates an image as image data becomes available.
This is a standard Java AWT method which gets called by the AWT to
incrementally draw an image as more image data becomes available.
- Parameters:
- img - the image being drawn
- flags - image update flags (see class ImageObserver)
- x - horizontal position, in pixels
- y - vertical position, in pixels
- w - width, in pixels
- h - height, in pixels
- Returns:
- true if image has been completely loaded
- See Also:
- ImageObserver, imageUpdate
toString
public java.lang.String toString()
- Returns a string representation of this component.
This is a standard Java AWT method which gets called to generate
a string that represents this component.
- Returns:
- a meaningful string about this object
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index